package com.doubi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubi.entity.History;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HistoryMapper extends BaseMapper<History> {
    //查询近七天浏览记录
    public Integer recentlyHistory(@Param("rList") List<Integer> rList, @Param("dayTime") String dayTime,@Param("dayTime2") String dayTime2);

    //查询某一天我的视频总浏览量
    public Integer todayLookNum(@Param("rList") List<Integer> rList, @Param("dayTime") String dayTime);
}
